package com.ly.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @Author: liangyuan
 * @Date: 2020/11/5 10:40:58
 * @Description:
 */
@RestController
@Slf4j
public class PaymentController {

    @Value(value = "server.port")
    private String serverPort;

    /**
     * 用于查看是否成功使用了zookeeper
     * */
    @RequestMapping("/payment/zk")
    public String paymentZk(){
        return "SpringCloud with zookeeper :"+serverPort+"\t"+ UUID.randomUUID().toString();
    }

}

